﻿<?php
	//by default LT language will be selected
	if ($_SESSION['lang']==''){ 
		$_SESSION['lang']='lt';
	}
	
	//checking if any language selection was made
	if ($_GET["lang"] <> ''){
		$_SESSION['lang'] = $_GET["lang"];
		$lang = $_GET["lang"];
	}else{
		$lang = $_SESSION['lang'];
	}

	//ECHO 'pasirinkta kalba: '.$lang;
	
	if ($lang == 'en'){
		//header.inc.php
		define("lang_logo_1", "IT Assistance", true);
		define("lang_logo_2", "System", true);
		
		define("lang_h_log_out", "Log Out", true);
		define("lang_h_my_tickets", "My Tickets", true);
		define("lang_h_status", "Ticket Status", true);
		define("lang_h_new", "New Ticket", true);
		define("lang_h_home", "Home", true);
		
		//index.php
		define("lang_i_title", "Welcome to the support center", true);
		define("lang_i_description", "In order to streamline support requests and better serve you, we utilize a support ticket system. Every support request is assigned a unique ticket number which you can use to track the progress and responses online. For your reference we provide complete archives and history of all your support requests. A valid email address is required.", true);
		define("lang_i_new", "Open A New Ticket", true);
		define("lang_i_new_desc", "Please provide as much detail as possible so we can best assist you. To update a previously submitted ticket, please use the form to the right.", true);
		define("lang_i_new_btn", "Open New Ticket", true);
		define("lang_i_status", "Check Ticket Status", true);
		define("lang_i_status_desc", "We provide archives and history of all your support requests complete with responses.", true);
		define("lang_i_status_btn", "Check Status", true);

		//general
		define('lang_g_email', 'Email', true);
		define("lang_g_adsress", "Email Address", true);
		define("lang_g_ticket_n", "Ticket #", true);
		define("lang_g_full_name", "Full Name", true);
		define('lang_g_topic', 'Help Topic', true);
		define('lang_g_subject', 'Subject', true);
		define('lang_g_message', 'Message', true);
		define('lang_g_submit', 'Submit Ticket', true);
		define('lang_g_reset', 'Reset', true);
		define('lang_g_cancel', 'Cancel', true);
		define('lang_g_telephone', 'Telephone', true);
		define('lang_g_select', 'Select One', true);
		define('lang_g_lang_ext', '', true);
		define('lang_g_showing', 'Showing', true);
		define('lang_g_of', 'of', true);
		define('lang_g_create_date', 'Create Date', true);
		define('lang_g_status', 'Status', true);
		define('lang_g_department', 'Department', true);
		define('lang_g_open', 'Open', true);
		define('lang_g_closed', 'Closed', true);

		
		//errors
		define('lang_e_topic_req', 'Select help topic', true);
		define('lang_e_subject_req', 'Subject required', true);
		define('lang_e_message_req', 'Message required', true);
		define('lang_e_name_req', 'Name required', true);
		define('lang_e_valid_email_req', 'Valid email required', true);
		define('lang_e_dep_req', 'Dept. required', true);
		define('lang_e_source_req', 'Indicate source', true);
		define('lang_e_date_format', 'Invalid date - must be MM/DD/YY', true);
		define('lang_e_unknown_email', 'Email unknown', true);
		define('lang_e_priority_inv', 'Invalid Priority', true);
		define('lang_e_phone_inv', 'Valid phone # required', true);
		define('lang_e_auth_req', 'Authentication Required', true);
		define('lang_e_invalid_login', 'Invalid login', true);
		
		
		//open.inc.php
		define("lang_o_header", "Please fill in the form below to open a new ticket.", true);
		define('lang_o_error', 'Unable to create a ticket. Please correct errors below and try again!', true);
		define('lang_o_confirmation', 'Support ticket request created', true);

		//login.inc.php
		define('lang_l_header', 'To view the status of a ticket, provide us with your login details below.<br/>If this is your first time contacting us or you\'ve lost the ticket ID, please <a href="open.php">click here</a> to open a new ticket.', true);
		define('lang_l_view_stat', 'View Status', true);

		//thankyou.inc.php
		define('lang_f_header', 'Thank you for contacting us.<br>   A support ticket request has been created and a representative will be getting back to you shortly if necessary.', true);
		define('lang_f_ref_1', ' An email with the ticket number has been sent to ', true);
		define('lang_f_ref_2', 'You\'ll need the ticket number along with your email to view status and progress online.', true);
		define('lang_f_ref_3', 'If you wish to send additional comments or information regarding same issue, please follow the instructions on the email.', true);
		define('lang_f_signiture', 'UAB "Infotekas" team', true);

		//tickets.inc.php
		define('lang_t_tickets', 'Tickets', true);
		define('lang_t_all_tickets', 'All Tickets', true);
		define('lang_t_status_closed', 'Closed', true);
		define('lang_t_status_open', 'Open', true);
		define('lang_t_no_tickets', 'NO tickets found.', true);

		//viewticket.inc.php
		define('lang_v_status', 'Ticket Status', true);
		define('lang_v_thread', 'Ticket Thread', true);
		define('lang_v_enter_message', 'Enter Message', true);
		define('lang_v_attach_file', 'Attach File', true);
		define('lang_v_post_reply', 'Post Reply', true);
		define('lang_v_errors', 'Error(s) occured. Please try again', true);
		define('lang_v_errors_2', 'Unable to post the message. Try again', true);
		define('lang_v_confirm', 'Message Posted Successfully', true);

	}else{
		//header.inc.php
		define("lang_logo_1", "IT Pagalbos", true);
		define("lang_logo_2", "Sistema", true);
		
		define("lang_h_log_out", "Atsijungti", true);
		define("lang_h_my_tickets", "Mano užklausos", true);
		define("lang_h_status", "Užklausų būsena", true);
		define("lang_h_new", "Nauja užklausa", true);
		define("lang_h_home", "Į pradžią", true);
		
		//index.php
		define("lang_i_title", "Sveiki atvykę į IT pagalbos portalą", true);
		define("lang_i_description", "TODO  aprasymas", true);
		define("lang_i_new", "Sukurti naują užklausą", true);
		define("lang_i_new_desc", "TODO new desc", true);
		define("lang_i_new_btn", "Sukurti užklausą", true);
		define("lang_i_status", "Patikrinti užklausos būseną", true);
		define("lang_i_status_desc", "TODO new desc", true);
		define("lang_i_status_btn", "Tikrinti būseną", true);
		
		//general
		define("lang_g_email", "E-paštas", true);
		define("lang_g_adsress", "Elektroninis paštas", true);
		define("lang_g_ticket_n", "Užklausos nr.", true);
		define("lang_g_full_name", "Vardas/Pavadinimas", true);
		define('lang_g_topic', 'Užklausos tema', true);
		define('lang_g_subject', 'Antraštė', true);
		define('lang_g_message', 'Žinutė', true);
		define('lang_g_submit', 'Sukurti užklausą', true);
		define('lang_g_reset', 'Išvalyti', true);
		define('lang_g_cancel', 'Nutraukti', true);
		define('lang_g_telephone', 'Telefono numeris', true);
		define('lang_g_select', 'Pasirinkite', true);
		define('lang_g_lang_ext', '_lt', true);
		define('lang_g_showing', 'Rodomos', true);
		define('lang_g_of', 'iš', true);
		define('lang_g_create_date', 'Sukūrimo data', true);
		define('lang_g_status', 'Būsena', true);
		define('lang_g_department', 'Skyrius', true);
		define('lang_g_open', 'Aktyvi', true);
		define('lang_g_closed', 'Uždaryta', true);

		
		
		//errors
		define('lang_e_topic_req', 'Pasirinkite užklausos temą', true);
		define('lang_e_subject_req', 'Būtina antraštė', true);
		define('lang_e_message_req', 'Žinutė būtina', true);
		define('lang_e_name_req', 'Privaloma nurodyti vardą/pavadinimą', true);
		define('lang_e_valid_email_req', 'Reikalingas teisingas e-pašto adresas', true);
		define('lang_e_dep_req', 'Departamentas privalomas', true);
		define('lang_e_source_req', 'Neteisingas šaltinis', true);
		define('lang_e_date_format', 'Neteisinga data', true);
		define('lang_e_unknown_email', 'Nežinomas e-pašto adresas', true);
		define('lang_e_priority_inv', 'Neteisingas prioritetas', true);
		define('lang_e_phone_inv', 'Neteisingas telefono numeris', true);
		define('lang_e_auth_req', 'Būtina prisijungti', true);
		define('lang_e_invalid_login', 'Neteisingi prisijungimo duomenys', true);
		
		//open.inc.php
		define("lang_o_header", "TODO: description", true);
		define('lang_o_error', 'Užklausos sukurti nepavyko. Ištaisykite žemiau pateiktas klaidas.', true);
		define('lang_o_confirmation', 'Nauja užklausa užregistruota', true);

		//login.inc.php
		define('lang_l_header', 'TODO. Login description.', true);
		define('lang_l_view_stat', 'Peržiūrėti būklę', true);

		//thankyou.inc.php
		define('lang_f_header', 'TODO. Padekos antraste', true);
		define('lang_f_ref_1', 'TODO. Nuoroda i užklausą.', true);
		define('lang_f_ref_2', 'TODO. Nuoroda i užklausą.', true);
		define('lang_f_ref_3', 'TODO. Nuoroda i užklausą.', true);
		define('lang_f_signiture', 'UAB "Infotekas" komanda', true);

		//tickets.inc.php
		define('lang_t_tickets', 'Užklausos', true);
		define('lang_t_all_tickets', 'Visos Užklausos', true);
		define('lang_t_status_closed', 'Uždarytos', true);
		define('lang_t_status_open', 'Aktyvios', true);
		define('lang_t_no_tickets', 'Užklausų nerasta.', true);

		//viewticket.inc.php
		define('lang_v_status', 'Užklausos būsena', true);
		define('lang_v_thread', 'Užklausos veiksmai', true);
		define('lang_v_enter_message', 'Įveskite žinutę', true);
		define('lang_v_attach_file', 'Prisegite failą', true);
		define('lang_v_post_reply', 'Siųsti atsakymą', true);
		define('lang_v_errors', 'Įvyko klaida. Prašome bandyti dar kartą.', true);
		define('lang_v_errors_2', 'Įvyko klaida. Prašome bandyti dar kartą.', true);
		define('lang_v_confirm', 'Žinutė sėkmingai išsiųsta', true);
		
	}
?>